//import Vue from 'vue'
import Home from './components/Home.vue'
import Contacts from './components/Contacts.vue'
import Transactions from './components/Transactions.vue'
import Profile from './components/Profile.vue'
import UserReg from './components/Register.vue'
import Login from './components/Login.vue'
import ChartContent from './components/ChartContent.vue'
import Forget from './components/Forget.vue'
import Setting from './components/Setting.vue'
export default [
  {
    path: '/',
    redirect: '/home'
  },//默认打开
  {
    path: '*',
    redirect: '/home'
  },
  {
    path: '/home',
    component: Home
  }, {
    path: '/forget',
    component: Forget
  },
  {
    path: '/chartContent/:id',
    component: ChartContent
  }, {
    path: '/setting',
    component: Setting
  },
  {
    path: '/login',
    component: Login
  },

  {
    path: '/contacts',
    component: Contacts
  },
  {
    path: '/transactions',
    component: Transactions
  },
  {
    path: '/profile',
    component: Profile
  },
  {
    path: '/user-reg',
    component: UserReg
  }
];


